﻿CREATE PROCEDURE [dbo].[proc_Users_Getlist_Count]
	(
		@CompanyId int,
		@Stext nvarchar(50)
	)
AS
	Select Count(UserId) From aspnet_Users Where (@CompanyId=0 Or CompanyId=@CompanyId) and (@Stext Is NULL Or [Name] like '%'+@Stext+'%')
	RETURN
